/**
 * @ProjectName:Backend
 * @Title: StatisticsController
 * @Package com.phrp.controller
 * @Description: 统计数据的控制器
 * @author SuShuChao
 * @date 2024/4/26 12:08
 * @version V1.0
 * Copyright (c) 2024, 2034279227@qq.com All Rights Reserved.
 */
package com.phrp.controller;

import com.phrp.service.StatisticsService;
import com.phrp.util.returnResult.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/statistics")
public class StatisticsController {

    @Autowired
    private StatisticsService statisticsService;

    /**
     * 获取房源统计信息
     * @return
     */
    @GetMapping(value = "houseStatistics")
    public ResponseResult houseStatistics(){
        return statisticsService.houseStatistics();
    }

}
